/*
 * basic_app.h
 *
 *  Created on: 2015-8-11 10:07:06
 *      Author: Administrator
 */

#ifndef BASIC_APP_H_
#define BASIC_APP_H_


#include "xparameters.h"
#include "stdio.h"
#include "xintc.h"
#include "xgpio.h"
#include "sysctl_config.h"
#include "xlltemac.h"



int operate_gpio(u32 *gpio_rd_data_ptr, XGpio *Gpio_245o_ptr, XGpio *Gpio_245i_ptr);
void get_box_cab_id(u32 gpio_rd_data);
//void init_udp_buf();
void set_udp_buf();
void compute_checksum(Xuint8 *chksum_h, Xuint8 *chksum_l);
void reset_comm_status();
u32 TemacDetectPHY(XLlTemac * TemacInstancePtr);



#endif /* BASIC_APP_H_ */


